
@defaultColor: rgba(51, 51, 51, 0.4);
@hoverColor: rgba(26, 26, 26, 0.4);

.dropdown {
  position: relative;
  strong {
    display: block;
    background-color: @defaultColor;
    padding: 0 12px;
    height: 30px;
    line-height: 30px;
    margin-top: 5px;
    .transition(background-color 0.2s);
    .border-radius(3px);
    color: #fff;
    cursor: pointer;
    &:hover {
      background-color: @hoverColor;
    }
    &.dropdown-forbidden {
      cursor: not-allowed;
      color: #ccc;
      &:hover {
        background-color: @defaultColor;
      }
    }
    .icon-btn-arrow {
      font-size: 12px;
      position: relative;
      left: 4px;
      top: -2px;
      font-size: 13px;
    }
  }
  li.dropdown-item {
    padding-left: 0px;
    margin-bottom: auto;
    font-weight: normal;
  }
  .dropdown-main {
    background-color: rgba(51, 51, 51, 0.85);
    .border-radius(3px);
    min-width: 120px;
    padding: 4px 0;
    position: absolute;
    right: 0;
    top: 40px;
    z-index: 99;
    &:after {
      content: "";
      display: inline-block;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      border-bottom: 6px solid rgba(51, 51, 51, 0.85);
      position: absolute;
      top: -6px;
      right: 20px;
    }
    ul {
      max-height: 400px;
      overflow: auto;
    }
    li a {
      display: block;
      height: 30px;
      line-height: 30px;
      padding: 0 10px;
      color: #fff;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      &:hover {
        background-color: rgba(255, 255, 255, 0.2);
      }
    }
  }
  .dropdown-main-left {
    background-color: rgba(51, 51, 51, 0.85);
    .border-radius(3px);
    min-width: 120px;
    padding: 4px 0;
    position: absolute;
    top: 40px;
    z-index: 99;
    &:after {
      content: "";
      display: inline-block;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      border-bottom: 6px solid rgba(51, 51, 51, 0.85);
      position: absolute;
      top: -6px;
      left: 20px;
    }
    ul {
      max-height: 400px;
      overflow: auto;
    }
    li a {
      display: block;
      height: 30px;
      line-height: 30px;
      padding: 0 10px;
      color: #fff;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      &:hover {
        background-color: rgba(255, 255, 255, 0.2);
      }
    }
  }
}
